/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.soa.service.busi.wx;

import com.lianzt.commondata.AbstractCommonData;
import com.lianzt.commondata.DataConvertFactory;
import com.lianzt.exception.InstanceDataException;
import com.soa.exception.GlobalException;
import com.soa.service.BaseService;
import com.soa.util.wx.TrffUtil;
import java.util.List;
import javax.annotation.Resource;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 *S90001
 * @author chang
 */
@Service
public class SearchJczAll extends BaseService{
    @Resource 
    private TrffUtil trffUtil;
    private org.slf4j.Logger log = LoggerFactory.getLogger(MainService.class);

    @Override
    public String[] keys() {
        return null;
    }

    @Override
    public void execute(AbstractCommonData in, AbstractCommonData inhead, AbstractCommonData out, AbstractCommonData outhead) {
        AbstractCommonData session = getSession(in);
        if(in.containsKey("jczmc")){
            AbstractCommonData data = BaseService.runService(in, "S40001");
            data.remove("view");
            out.putArrayValue("result", data.getArrayValue("result"));
        }else{
            out.putArrayValue("result", session.getArrayValue("jczxx"));
        }
    }
    
}
